package com.example.kingdee.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  本系统的提示性错误
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HintException extends RuntimeException{
    private Integer code;
    private String msg;
    private String message;

    public HintException(String msg){
        this.code = 500;
        this.msg = "提示：" + msg;
        this.message = "提示：" + msg;
    }
}
